home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Games / NeXTmj / Source / TileDescriptionArray.h < prev    next >
C/C++ Source or Header  |  1991-03-22  |  927b  |  43 lines

  1.  
  2. /*
  3.  * This object holds an array of Tile Description objects.
  4.  *    The default constructor calls the constr for this object initializes the array 
  5.  *    with the Game Tiles. 
  6.  *
  7.  $Author$
  8.  $Header$
  9.  *
  10.  $Log$
  11.  */
  12.  
  13.  
  14. #import    "TileDescription.h"
  15.  
  16. extern "C" {
  17. #import    "mj.h"
  18. }
  19.  
  20.  
  21. class TileDescriptionArray {
  22. private:
  23.                                                 // This matrix holds a Tile Description 
  24.                                                 //    for all tile locations on the
  25.                                                 //    Game Board.  Effectivly, this matrix
  26.                                                 //    is a const. 
  27.     TileDescription*    tile_descriptions[ NUMBER_OF_TILES ];
  28.  
  29.  
  30. public:
  31.     
  32.     TileDescriptionArray( void );
  33.     ~TileDescriptionArray( void );
  34.                                                 // The only access to the array is to 
  35.                                                 //    examine a description.  So we'll
  36.                                                 //    return pointers (I don't really care
  37.                                                 //    for reference types anyway).
  38.     TileDescription* operator[]( int );
  39.                                                 // How many elements are in the array?
  40.     int            size( void );    
  41. };
  42.  
  43.